added functions to load localstorage, removed console.logs, JSLint errors