Fix issues found by tslint (a new linter we are also working on)