Despite Hamilton's untimely death in August 1804, the Association carried on, though the enterprise was mired in a legal dispute between New York City and the state of New Jersey over who owned the waterfront. The unresolved dispute would continue until the Treaty of 1834 where New York City formally ceded control of Jersey City to New Jersey. Over that time though, the Jersey Company applied to the New Jersey Legislature to incorporate the Town of Jersey. The legislature enacted "An Act to incorporate the City of Jersey, in the County of Bergen" on January 28, 1820. Under the provision, five freeholders (including Varick, Dey, and Radcliff) were to be chosen as "the Board of Selectmen of Jersey City," thereby establishing the first governing body of the emerging municipality. The city was reincorporated on January 23, 1829, and again on February 22, 1838, at which time it became completely independent of North Bergen and was given its present name. On February 22, 1840, it became part of the newly created Hudson County.