Cleanup MOS modules and switch to constructor pattern for BarChart

Some misc stuff:
  - Ensure you have jshint installed and running in your editor
  - Added jshint config
  - Move 'use strict' to first line in each module function, this
        is called the function form and is preferred
  - Switched to submodule pattern for MOS modules
  - Use single quotes and 4 space indentation
  - Switched BarChart to use classical 'new' pattern