bind doneday from html to javascript, and integrate fully