Fixing a problem on using Rails and jQuery1.9.1