attempting to intergrate PHP sdk with other javascript scripts