Re-write collagePlus in vanilla js