Javascript Array containsKey(key)
Array.prototype.containsKey = function(key) { return typeof this[key] !== 'undefined'; }