title: connect mongodb to a pure js file
body: <p>is there any way to get data from a DB (MongoDB) to a pure js file?
  I want to check if something already exists in the DB and according to this to send info to the server.</p>