Move statcounter code to scripts file