Fix flash-wmode.js

Some fixes to flash-mode.js to make it work on moderm FF (for embed tags).