removes duplicate javascript code
simplifies formatValue method and adds a shorthand for millions
Merge pull request #129 from masone/master

Formatting millions