modify template and js