changes for coffeescript and js