Minimize js canvas

Minimized version of canvas module is helpful for:
1. Optimized rendering.
2. would be very helpful for IPython plugin