update example and js