Call getEnvJSON instead of passing a bound function.

Right now, `environment.js` gets executed with environment equal to the string `{{ENV}}`. If you add development or production-specific variables to `environment.js`, it doesn't work.