* Enhance performance.
* Fixed trim bug in older browsers.
* Enhance performance.
* Enable event if document is not ready.