Added html5 canvas app
Refactor html5 canvas app: reuse objects
Optimize/Clean up/Reuse code