Refactor InlineLoaderHooks into ES6.

done