modify javascript of web version