update demo js