Add script.js

AsyncLoader constructor and methods