update with mongodb and added js for multiple question