jQuery 1.9 and compatibility check for jQuery 2.0

Also some css optimizations.