number convertion js code