passing "options" parameter to jX-toJS