Here variable "i" in soundsArray[i], not taking any values, line 4
var soundsArray = ["crash", "kick-bass", "snare"