Converting Numbers to Words: Rupees and Paise in JavaScript