       if not @error
         d = Date.now()
         try
-          @javaScript = coffee.compile c, {bare: true}
+          opts = { bare: true }
+          if @browserMode
+            opts.bare = false
+          @javaScript = coffee.compile c, opts
         catch e
           @error = new toffeeError @, errorTypes.COFFEE_COMPILE, e
         if @minimize and not @error

  ###
  __ = "  "
  """
#{__}toffee.__print = (locals, o) ->
#{__}  if locals.__toffee.state is toffee.states.COFFEE
#{__}    locals.__toffee.out.push o

    ___  = @_tabAsSpaces()
    __ = "  "
    """
#{if @browserMode then '' else ('_TMPL_ = (__toffee_run_input) ->' + (getCommonHeaders false, @autoEscape)) }
#{__}tmpl = toffee.templates["#{@bundlePath}"]  =
#{__}  bundlePath: "#{@bundlePath}"
#{__}tmpl.render = tmpl.pub = (__locals) ->
