cleanup
create db dir when running mongo
split javascripts into files