added js_options option