Added the window for the inputTypeText

- Added the window for the inputTypeText
- Refactorized the main javascript
- Added the css class span.tip