pHp & JavaScript templates