Refactor InlineLoaderHooks into ES6.

this.elements.push(...tree.scriptItemList);