Base on node instead of in browser

Refactor functionality to make the files processing on Node and browser
will focus on the canvas draw functionality