working scriptable slider in JS (with get/set for parameter values)