updating example js