Registers a client script block in the page.