Fix jshint errors

Noticed there were a few missing `use strict` statements in the source according to jshint. Added them.