try to solve the ajax of savebutton
remove most of js codes from jsp-files and put them into js-files