some updates to app javascripts and mongojs testing