updates javascript snippet file