Javascript convert numbers to currency

and use it like this