Make coffeescript register itself if it has a register function.