add counter to point testing javascript and move some styling to stylesheet