wire json api interface into mod_v8