Roman Numeral converter implemented in JavaScript