update demo page and common.js