GUI-1210: Fix broken 'errors' reference.  Minor Python and JS lint cleanup