changed coffeescript to jquery