Php Loop Over Enum In Javascript 175