Changed localStorage references to use getItem and setItem.  Closes #4