Update iDb.js

app now checks the save state of the curr. file when clikd on "new"