Some jshint fixes for CED

First attempt to fix some JShint errors.