Moved all functions into mongarr.js and added basic join() capability