Use loop instead of map for IE 8.
Add `tslint` and fix according to the rules.