Fix a few TypeScript warnings

@hatton All the typescript files are using tabs, not spaces, so I guess the guidelines are not the same. The default in WebStorm and VS is probably tabs.