[configure.ac] Set a WITH_JS_TEST variable when test tools for JavaScript code are installed.