enable c++11 for js generating