Fix some linting issues; fix error in client/main.js