Update demo.js

Add clear button for clear log.