JavaScript: Array.lastindexOf()