Fix bug in disabling/enabling delete button

If the page is refreshed when a few checkboxes have been checked, we need to enable the delete button. Added a function to call on DOM ready.