updating JS components