mongod with ajax single page