Automated javascript end to end testing