add profile.js to index page