added the small template and js