This should probably be located at js/elgg/embed.js, no?