minor jshint fixes
Renamed property .motionState of Body to .type