A JavaScript Testing API