how to select a random image in an array using javascript