copy specific keys of an object
var copy_keys = function(item, keys){ var ob = {}; keys.forEach(function(k){ ob[k] = item[k]; }); return ob; };