For some reason the coplete message did not appear in my original posting.
I looked at using portal themes but this seems too cumbersome for alot of js files. Plus the js contains business logic and not just presentation logic.
Thanks in advance!
Maybe your issue is related to this one:
It suggest to use jboss-portlet.xml to inject the headers, but but still no reply yet.