Javascript testing made easy and explicit