Pick Random Element From Array Javascript Function