fixing firefox compatibility issue with embed.js