jshint
fixing prependHTML and appendHTML
adding tests for tables, just in case
Applying new technique for appending HTML to tables