Fix some jshint/jslint errors and warnings

There are a few jshint/jslint errors and warnings that break my build scripts with slickQuiz.

This fixes ~most of them.