turning code into jquery plugin

--HG--
branch : hold-input