fixes #356, calling register for coffeescript