php like array object for js