auto_spec_js: add full test of nested api style for JS