Javascript testing environment