Some JS falling sands code I've been playing with