fixes in the javascript file