Fixed selectByIndex selector in datalist. Made animate not crash when testing with casperjs.