a simple, but reusable Javascript component for an inline editable input