Start to move some of the JS from the old env page into the new env page