javascript for toggle detail