Javascript Array removeByIndex(i)
Array.prototype.removeByIndex = function(i) { return this.splice(idx, 1); }