IE8 compatibility

`for` and `if` are reserved keywords and cannot be used in dot syntax in _Internet Explorer 8._