JavaScript: indexOf() method ~> Array