Fixed JavaScript errors on loading screens
Merge pull request #463 from samuelmaddock/loading-fix

Fixed JavaScript errors on loading screens