added some functions in js files to control the list, like remove completed items, count the items left and others