fixed some of the index javascript, fixed a bug in users that was preventing normal users from deleting themselves