Php Use Javascript Function Syntax