mimic glide system in example js