fixing the javascript reference