ECMS-4738 JS doesn't work - Inject the js code to portal