Don't rely on indifferent access for Tire's #as_json.

This fixes a bug in autocomplete search after the gem updates.
Add a browser spec that makes sure autocomplete works.

This is also a decent smoke test for generic JS errors.