Refactor InlineLoaderHooks into ES6.

wrong indentation

Pro tip, set your tabs to 8 spaces and they will stand out.