more fixes to the memberProfiles page, including Javascript