Update demo.html

type="text/javascript", maybe the problem why online demo doesn't work now