better unobtrusive javascript respond for Rails and Jquery