refactored vis.js and updated readme