add ScriptLoader
expose global
add script loader