Implemented some recommendations from the JavaScript code inspector in PyCharm Pro including removing dead code, fixed variable typo, added missing semicolons, removed duplicate jQuery lookups