Refactor InlineLoaderHooks into ES6.

That is what I have too now that I check...

```json
"tab_size": 2,
"translate_tabs_to_spaces": true,
```