following James Shore's WeeWikiPaint project on letscodejavascript