Comment and license
visualize Helper

Adding a helper JS to include all the tasks related to visualize
bug fixes

syntax errors
Now using visualize helper

separated visualize.js helper funtions from the main script