remove events tracking from main.js

add events tracking in head. place jquery in head