Simple painter app in JS