fix for compiled js dependency injection problems

Without this, compiled javascript (like with uglify) will fail to inject the right thing into the function argument to the .run() command.