Updated DEMO js