Making .each more performant via length caching. Fixing html() numeric input