move callback outside of try to avoid callback being invoked twice; fix getItem() for the case where storage item exists but with empty value.
align code better, add more comments
Merge pull request #8 from yahoo/fixCallback

Fix callback