Bug fix to use callback function with IE >= 8

Modification of function executeFunctionByName for IE compatibility. Thanks to Alex Nazarov.