Input works and can also print words in div