add counter js (not comleted)