Javascript Object Array Foreach Php