Fix linter errors in client JS