incremental refactoring and improvements to jobs list, skeleton of ajax reloader code in ui.js