Php Get Url Query Javascript Function Declarations