fixing syntax issues; improperly terminated statements, redundant variable assignments.  cleaned up variable declaration in mongo.js.  added comment in mongo to let devs know where certain variables are declared to make code more readable.