JavaScript: Array.lastindexOf