Include new parameter control in JavaScript function.