A Javascript serializer