refactoring portal-dashboard-designer. Removing JS inside dashboard-template