added javascript files, counter works but doesnt turn red