implementation of CClientScript