Added regexp support; removed dependency on Dojo