add huge encounterDetail.js file