Don't perform default action (page load / submit) if default prevented

As of right now, anchors that have an onclick event attached will always fire the Davis route, no matter if the onclick handler returns false or calls event.preventDefault(). Attached change fixes that.