Moved regular expressions a bit.
A minimal version without auto-sensing DOM meta-data.
Moved variables between main closure and auto-sensing closure.