wrote php not js