use function detection code from language/JSUtils