Promisified script loading.

This enables projects requiring this script to wait for the script to resolve before displaying anything.