complete output div on page
send messages to web page and handle close() error
add css file