rebuild the javascript