bug fix in terms_controller and relocated backbone templates