jquery in top of main template