Counter javascript test boilerplate