generating a file with requirejs