new js for sm2