Fixed the preventDefault() check and generated minified version of js