A lightweight script loader, with callback support