Improved the generic aspect of the cppnjs object