JavaScript plugin for the html input text