removed inline JS, added e.preventDefault to avoid redirecting to 'false' URL