Closure compiler directive to keep copyright notice in place
Made the RegExp snapshotting function more robust
Switched to UglifyJS as the minifier: it doesn't change code behaviour