Php Function Pass Variable To Javascript Compiler