Improvements to profile page js