Adds a try catch to solve a bug where the page won't load properly if all the files don't load.