Label/cache jQuery variables, add semicolons
Use .empty().append() directly for clarity
Merge pull request #626 from mc10/bug-fixes

Address issue in c747295