fixed js and broken it again -- issues with counter