Don't bother showing an alert if download isn't selected, i mean its pretty obvious
Use bootstrap modals instead of javascript