Moved app creation into env.js