adding some Xregexp goodness

not sure what the policy should be regarding other js libraries - check
them in? I guess that's simpler ...