Cleanup: coding style fixes
Use content editable span for displaying current unit index

Although it's not an actual input element, this adjusts its size
automatically, the user experience is the same and the UI feels less
cluttered.
Also style as an input when the element has focus and avoid outline