fun AjaxOptions.toJs(emptyOption: Boolean): dynamic
Convert AjaxOptions to JavaScript JSON object.
emptyOption - add an empty position as the first select option
emptyOption
Return JSON object