Use e.preventDefault() instead of return false

If click handler fails return false is not necessarily executed causing
a page to refresh and error message from console gets lost. Prevent
default as the first action of every handler to prevent this.