automated testing for JavaScript