uncommented last section of profile.js