shuffle in js

Signed-off-by: Thejasvi Bhat <thejasvi@smashed.in>