Php Parse String Into Array In Javascript Code