refactor smartform to support testing for multiple patterns
remove demo-basic, replace with index.html