JS added to count clicks