sample code fragments for hand coded ajax / node / express / mongo