Fix js runtime problem