trim phpQuery main scripts