Small drawing program using Html5 canvas and Angularjs