Web checkbox element implemented with HTML canvas and JavaScript