Refactorings mainly.   Trying to get some jQuery stuff to work.