public static void requireWrapper(Writer writer,Module mod) throws IOException {
  writer.write("var $$req$ = require; require = (typeof $$ceylon$require == 'undefined') ? $$req$ : function() { return $$ceylon$require('" + JsCompiler.scriptPath(mod) + "', $$req$, Array.prototype.slice.call(arguments)); }\n");
}

public static void requireWrapper ( Writer writer , Module mod ) throws IOException { writer . write ( "var $$req$ = require; require = (typeof $$ceylon$require == 'undefined') ? $$req$ : function() { return $$ceylon$require('" + JsCompiler . scriptPath ( mod ) + "', $$req$, Array.prototype.slice.call(arguments)); }\n" ) ; }
writes the require wrapper handling for our wrapper
