Refactored world chart JS.