clean up

cleaning up the javascript