Update a JavaScript MVC model object with DOM changes