Javascript functions I find useful to use in the Mongo shell