Create swfobject.js

renamed the main function to have a capital and changed internal references to the name so it's more compatible to haxe3