Simple fluid simulation written in javascript