add option to clear js local storage