Simple JS function that shuffles specified array