LPS-47108 Move portlet.js to module

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