linted js file and added confirm box when deleting a question