remove old js and correct avatar display