Adds preventDefault to main.coffee