Prevent location change when links are clicked

There's an issue with Firechat UI when using on sites with URLs like http://example.com/foo/bar and with `<base href>` tag set in `<head>`: when a user clicks an UI element represented by `<a href="#!">`, a location change to http://example.com/#! happens.

How to reproduce:
1. Add Firechat on a page with a nested path, e.g. `foo/bar`.
2. Add `<base href="http://your-site">` between `<head></head>`.
3. Enter page foo/bar. Then try clicking different chat rooms, closing them and inviting users - all these buttons relocate you to the home page.

I've tried fixing this by adding `return false;` to click event handlers and it worked for chat room selection and  closing. But when clicking user names in dropdowns, it still redirects and I'm not sure how to fix it.