However, I don't think there's any way to easily embed js into a portlet. You could do some ugly hacks, such as showing an iframe in the portlet, and have the iframe's source (e.g a suitelet page) run some js which can modify the parent. Doesn't seem like a great idea though.