Php Array Push Key Value Javascript Foreach