Powder Toy in Javascript