Updated add page js