getProcFunctions in scripEngine is not usable