added ability to dynamically insert css rules
override requestAnimationFrame without prefixes
added support for custom events
some minor fixes
added hasParent method