new js function loadExternal