Write a Javascript function to shuffle an array.