Javascript Dynamically Create Array Php Push Notification Service