ClientScript component for controller