Fix location of js files for couch configure

Please take this changes which fixes issue with locating jsapi.h using spidermonkey 1.8.5 (current version in cmsweb).