IDE-384 partial fix for <aui:script> ~= <script> support
IDE-1637 Add the check for portal language properties
IDE-1637 use final and use retval as var name