FACES-1467
aui:script tag not renders its content during AJAX call
(added JSF1/JSF2 compatibility layer)