[js] try to grab evements and add class, fail in array elements add class