removed duplicate function call from profile.js