some minor JS cleanups/linter complaints