Ensure JS is run in the correct order for all browsers.
Merge pull request #4 from DarrenInwood/iefix

Ensure JS is run in the correct order for all browsers.