update demo to latest js