Creates global define function to mimic requirejs define in node