split the main header file njs.h into njs.h and njs.cpp