add initialize value of input function

add initialize value of input function
improved demo
box width css to html