fixed the javascript i think