move serializeObject() coffeescript definition to main.js.coffee