Typescript Call Javascript Function From Php