reformat to not use functions in loops
Migrating to a Grunt + requirejs + amdclean build
Abstract getScript