actually fix the javascript functionality