[build][js] fix build for JS