script.js
 nav, insert, delete updates
  todo: fix insert & delete