Added toastr to replace alert and moved js scripts to bottom html