fix #80 replacing non existant value variable by model.

After last refactoring value should have been model variable in serialize.js.
Value variable is not defined anywhere.