Proper detection of CSS transition support with jQuery.animate() fallback.

Added missing semicolons and tweaked "var" keywords.