You need to interface with a MongoDB database.
A REST-based interface is in the works. This will provide AJAX-based access.
This recipe breaks the save and find into separate examples in order to separate the MongoDB-specific concerns from the task of connection and callback management. The async module can help with that.