index template and jquery library