[bug965043] - replaced 'new Function' code block