Coffeescript compiles top level function