add a javascript file for myprofile page
change res.send to res.json to aviod some problems for frontend