Clean out dead code in loader.js