Create switchDetail.js