Fixed some JSHint warnings