I have a multistage registration for users for a somewhat complicated app. I need to be able to use js to check for unique usernames, etc because users will get pissed off having to redo a multistage form. What is the simplest way to use js to query ActiveRecord?