Make demo js-code work