VE-422 Allow dialog iframe to fully load before appending script. Fixes Firefox bug.
VE-422 Script type attribute is not needed for modern browsers
VE-422 Use newer jQuery event attachment syntax
VE-422 Code formatting
Merge pull request #3577 from Wikia/VE-422-fix

VE-422 Allow dialog iframe to fully load before appending script