Added update.js fully functional but delete needs to be tested