fixing demo js finally