added how to create indexes and how to connect to mongoDB from javascropt file