updating generics js