Fixed the tab navigation with saving. No ajax yet, but at least it goes back to where you were. Fixed a lot of JS stuff.