Updated demo js