Integrating MongoDB, first basic ajax request