Load jquery at the end of main template