Jquery-rails gem is now do the same thing and have better maintainence