Update loader.js

change global var name