List of utility methods to do Object Flatten
Object.prototype.flatten = function() { var that = this; return Object.getOwnPropertyNames(this).map(function(name) { return that[name]; }); };