I am making a code which converts the given amount into words, heres is what I have got after googling. But I think its a little lengthy code to achieve a simple task. Two R
If you need with Cent then you may use this one
js fiddle
Here taka mean USD and paisa mean cent