Updating new modal JS to support varying content