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

Added missing semicolons and "var" keyword.