Minor fixes

- Added `events` Boolean property to data stores to enable/disable events (default is enabled)
- Removed all RegExp patterns from `regex` which used a `g` modifier
- Updated `element.attr()` to change a `null` value to `undefined`