I\'m writing a bash script and connecting to mongo shell where I write Javascript code. Here I have to call a function in two places. In one place when I call that function, I h