removed js file based table header creation code
moved queryResults display to template and document retrival out to router