Abstracting out some actions on the displayResultSet method.
More abstraction
Removing random no cache string from the file name in db.
Cleaning up JQuery helper methods.