Automated testing for JavaScript