fix typos in loader.js