Php Loop Over Enum In Javascript The Statement