js fixes, working on friend UI