use native function
explicitly require indexOf
add webdriver and e2e test to travis