Refactored function creation to named function to resolve jshint errors
Merge pull request #100 from tpodom/jshint_fixes

Refactored function creation to named function to resolve jshint errors