Modify CMakeLists to make plugin js