code cleanup, final refactor before this repository is branched to include automated build and unit/integration testing via yeoman, jasmine, karma, and require.js integration