[ADD] base : res.currency : method that returns a js function to format currencies