Changing to new js enviroment