new ClientScript class for input processing