Fixed most of the Javascript - Possibly ready for Ajax

Still can't delete all individually in any order. View page still wont
show accordian.