LPS-47109 Move util.js to module

https://issues.liferay.com/browse/LPS-47109