added js and demo.html