Php Parse String Into Array Js Practice