Implement Pattern Password with JavaScript and HTML5 Canvas.