cleaned up the javascript/jquery file