add javascript for interchange