modify the javascript