Use Css Variable In Nth Child In Javascript