updating demo js