Experiments with making a javascript paint program