Update app.js

added function for delete and search such as onDelete, searchThesis and deleteThesis