JS in Rails fixed.