Fix for issue#18

Using eval to convert the obtained string into function, so that it can be executed during the callback