Replace EM hard coded javascript for event

- starting point for #08725: Replace Expression manager Hard coded ja...
- actually only relevance : relevanceOn and relevanceOff function sending 'relevance' event