Php String Loop Through Json Javascript Tutorial