More jshint and misc fixes

Fixes "Uncaught ReferenceError: count is not defined"
Merge pull request #80 from Teybeo/feature/composer_examples

More jshint and misc fixes