a simple wrapper for localStorage