Add an arbitrary precision base convert for js