Typescript Call Javascript Function In Php