WSH/JScript - refactor parameters and functions section