updating JS