Support for javascript callbacks