Hacking around with mongodb and angular JS