Fix code from JSHint