Fixed some JSHint errors