Update main.js

I was using your code as a template for mine. While debugging and researching, I discovered this: http://fuelyourcoding.com/jquery-events-stop-misusing-return-false/ and I followed the suggestions in that article.