Javascript Array lastIndex()
lastIndex()
Array.prototype.lastIndex = function(){ return this.length-1; }