       # looks for `define` before looking for `module.exports`, which eats up
       # our backbone.
       .pipe change (content) ->
-        "(function() { var define = undefined; return #{content} })() \n\n"
+        "(function() { var define = undefined; return #{content} })()"
       .pipe(insert.append(license))
       .pipe(sourcemaps.write('./'))
       .pipe(gulp.dest(paths.buildDir.js))

      # looks for `define` before looking for `module.exports`, which eats up
      # our backbone.
      .pipe change (content) ->
        "(function() { var define = undefined; return #{content} })() \n\n"
      .pipe change (content) ->
        "bokehRequire = #{content}"
      .pipe(insert.append(license))

      .pipe(rename((path) -> path.basename += '.min'))
      .pipe(sourcemaps.init({loadMaps: true}))
      .pipe(uglify({ output: {comments: /^!|copyright|license|\(c\)/i} }))
      .pipe(insert.append(license))
      .pipe(sourcemaps.write('./'))
      .pipe(gulp.dest(paths.buildDir.js))
  es.merge.apply(null, tasks)
