Functional Analysis : HTML5 canvas research