lint js, fix whitespace, and spelling