trying to use persistence.js