Javascript version of Roman Numerals conversions