updating page js