Separated out controller js
Added Delete Functionality