Matt made some changes to the javascript