Remove useless code from loader.js