JSHinted mongo.js, add missing semicolens
simplify update if not insert function
auto indentation, and some other JSHint problems fixed