update example js