fixed technical debt in profile.js