JSHint errors fix