Removed those anoying `confirm()`

Removed anoying confirms, now uses buttons instead.
Use jQuery to generate modals instead of text
Formated code