Makes jshint happy
Remove sinon.js references
Update direction display
Refactor event creation