Fix your console errors

You can look at each git commit, it has comments for why I did it. Now your app loads with no console errors.