implemented storage.js wrapper and entityManager(partial)