Removed obsolete code
Removed more obsolete code
Commented out inappropriate error checking

And reformatted some code
Fixed a JQuery CSS problem