Rather than using `return false` to prevent click events from causing links to do things, use [`event.preventDefault`](http://api.jquery.com/event.preventDefault/):
```javascript
$(...).on('click', function(event) {
  event.preventDefault();
  doSomething();
});
```
If you rely on `return false` and something raises an exception earlier in the function, the click event will propagate as normal. Using `preventDefault` insulates the code from that problem.