Use localStorage.{get,set,remove}Item

Using property accessors seems to be buggy on FF.
Fix social buttons (fixes #1690)