adding the javascript fixes