To be safe for other users incorporating this script we should avoid bulldozing the `onload` listener and implement an abstraction instead.

Node: ideally we should not use jQuery for our abstraction layer but rather implement our own jQuery compatible API abstraction and possibly as a separate pull request we could then use some form of DI (dependency injection) so users can determine the library used.