Load libraries via civicrm_coreResourceList hook instead of buildForm/pageRun. This allows it to work everywhere and (eg) makes it available with Stripe + drupal webform_civicrm.