Fix for alert issue in FireFox and Safari
Merge pull request #39 from edx/will/fix-browser-incompatibilities

Fix for alert issue in FireFox and Safari