changed format of object on javascript side to send to Processing