HTML5 canvas and angular experiment