Transforms AMD-based JavaScript to make it compatible with Google's Closure Compiler