typos are adding to nedb
fixed typo.js for additional function