Update iDb.js

app now asks for saving unsaved docs when clicked on "new"