Javascript storage module