rename CppWriter to JSWriter