added edit person info to javascript version