compiles as coffeescript according to content-type