Make JSHint stricter, some small fixes