Fix JS bug and avatar size