move hydra finger painting from c++ to js