Simple promise-based JS script loader