switched to js instead of coffeescript