Performance improvements and jQuery 1.9 compatibility

Removed $.browser requirement and refactored a bit so it runs slightly
faster and works with jQuery 1.9. Also checks for native scoped style
support and exits early if available.