orcid_api.spec.js - function should be called on event trigger