#265 -- fix the toc hanging 1/2 inch from bottom and split apart xquery and js functions in the toc