Improved visit count, added local storage library.