Minor fixes.

Fixed bug when running without define amd.
Improved performance:
* No longer calculates transform matrix from DOM.
* Hardware rendering now only applied to animated elements.