Add the functions for controlling the input forms with Javascript.