added js switch description search method