fix initial capital and mortality. apply javascript in initial capital create and edit page.