audioProfile.js: code cleanup