Port of BaraBariBall to JavaScript