browser bug check completed

Changelog:

- Browser and feature detection finished

- IE detection added

- setDocument added

- browser bug checks

- QSA checks and bugs completed

- minor fixes and cleanups