fixes after JSHint check