Full threadbenjaminbenben·Good point, another approach could be to use a templating system where the ui is bound to a js object like knockout.js or angular.js.View on HN