Changed script-editor from ace to codemirror...
Ace just don't want to integrate with jsf's resource-management.

Script-editor is fully now working.