in the replaced S3 controller, put
jQuery.sap.require(<fully qualified namespace of the util class>)
jQuery.sap.require('hcm.mgr....utils.formatting')
in the replaced S3 controller, put
jQuery.sap.require(<fully qualified namespace of the util class>)
jQuery.sap.require('hcm.mgr....utils.formatting')