Typescript Call Javascript Function From C