vis.js complete implementation with localstorage