fixed bug where party index js was not waiting until doc ready on all subsequent page loads