<input type="button" value="test" id="aa" οnclick="test();">
<script type="text/javascript">
function test(){
$('embed').remove();
$('body').append('<embed src="../doormove1.wav" autostart="true" hidden="true" loop="false">');
};
</script>