A simple JavaScript function to shuffle array randomly