Convert serialized PHP session array into a js object.