changes to demo page
cahnges to js code
update