Get a random value out of a javascript array