replace window by "this"
fix bug in shuffle()