fix: readded changes that disappeared in the build for  #16 (avoiding attributes from objects before store it on localforage)