var getKeys = function(obj){ var keys = []; for(var key in obj){ keys.push(key); } return keys; }
var keys = Object.keys(myObject);