<P> The dance down the church aisle to Chris Brown's "Forever" is based on the popular 2009 YouTube viral video, "JK Wedding Entrance Dance", in which a young couple (JK, standing for "Jill and Kevin") dance down the aisle to the song along with their wedding party . Pam mentions that the song was specifically put on a "Do Not Play List", but was choreographed by the wedding guests and office workers regardless . The song played during Andy's party is Kardinal Offishall's "Numba 1 (Tide is High)" featuring Rihanna . Dwight is shown wearing the Three Wolf Moon T - shirt, made famous by humorous reviews on Amazon, before going out to the hotel bar with Michael to pick up women, commenting that "it's suggestive to women, because of howling during sex ." </P> <P> In its original American broadcast, "Niagara" was viewed by an estimated 9.42 million households, with a 4.8 rating and a 12 share in the 18--49 demographic coming second in its timeslot after Grey's Anatomy . Greg Daniels and Mindy Kaling received a Primetime Emmy Award nomination for Outstanding Writing for a Comedy Series for their work on "Niagara" at the 62nd Primetime Emmy Awards, but lost to Modern Family's Steven Levitan and Christopher Lloyd for their work on the pilot episode . </P> <P> The episode received positive reviews from critics . The episode ranked 24th on BuddyTV's list of best 50 episodes of 2009 with them saying "It wasn't easy, but they did it all, creating a goofy, joyful, and special day for Jim and Pam that brought tears to our eyes ." Dan Phillip of IGN gave the episode an 8.3 saying calling it "Impressive" and "The episode certainly could have delivered more in terms of creativity and high comedy, but it still contained a great deal of entertainment ." Despite that, he said the episode failed in comparison to "Phyllis' Wedding". "Niagara" was voted the second highest rated out of 115 from the series, according to a poll at the fansite, OfficeTally . </P>

The office episode wedding of pam and jim