Allow setting options from Javascript.