history_list template and add a function in script.js