Multiple environments for Javascript