[OE-2936] refactored the way js and css files are loaded for event types.