Promise and messaging.
Added load event handler.
Add scripts first in head element.