Common JS API: callback warpper for functions in params implemented