ignore staging dir, show success alert and error alerts, tidy up js