Tidy public profile JS