change to main.js

changed save and delete function.
Merge branch 'week-4-dev' of https://github.com/o61839/ASD_1309 into week-4-dev

Conflicts:
	js/main.js