function clone(o){
  var c = {};
  var h = Object.keys(o);
  for(var i = 0, co = h.length; i < co; i++){
    c[h[i]] = o[h[i]];
  }
  return c;
}
function clone(o){
  var c = {};
  var h = Object.keys(o);
  for(var i = 0, co = h.length; i < co; i++){
    c[h[i]] = o[h[i]];
  }
  return c;
}
function clone ( o ) { var c = { } ; var h = Object . keys ( o ) ; for ( var i = 0 , co = h . length ; i < co ; i ++ ) { c [ h [ i ] ] = o [ h [ i ] ] ; } return c ; }
Function for creating a clone of an object

@param o {Object}  object to clone
@return {Object}
Function for creating a clone of an object