jshint
stateMachine, state and event classes
simple test
little refactoring
eventList class