extern C constructs to make C++ happy. Plus the typical #ifdef JS_H.