Php Pass Variable To Javascript Function Types That Could Represent