CB-7102 - Initial implementation of globalization plugin in Firefox OS

Partial. No currency and number functions
`format` is already declared up top, you can drop the `var` here.