implemented profile api
added underscore.js
added test cases