JSHint advices applied