Testing php to js script