update profile.js to most recent version