Roman numerals kata in JavaScript