add template and js libs