Use localstorage to share preferences between scripts, fix preventDefault clicks by binding to document body, improve readability