fix prevent default in JS