remove redundant lines in profile.js