add serializeObject to veil.js