the rest of the javascript