Is that true, that MongoDB shell is written in JavaScript?
If yes why it's a UNIX binary? Not a webapp for browser?
> less /usr/local/bin/mongo
"/usr/local/bin/mongo" may be a binary file. See it anyway?
> file /usr/local/bin/mongo
/usr/local/bin/mongo: Mach-O 64-bit executable x86_64