Move global js eventhandlers to CMS module