better unobtrusive javascript respond for Jquery