A JavaScript function that converts integers to Roman numerals.
Converts integers to Roman numerals. Works for integers up to 3999.