Making it work with nodejs and mongodb