Behavior scripts cannot be implemented in Cloud. Atlassian do not allow add-ons to inject Javascript or other frontend resources into the page.