Start adding support for setting an environment in JS framework