Updated some of the Javscript