move num to js-math