Serialize JS objects in Pusher.log