jQuery attribute serializer and renderer