Updated some of the JS stuff