added lib js & changed tmpl