Housekeeping

Moved about 200 lines of JS outta XSL's and into contextMenu.js