working on mongojs, but getting errors