From http://www.wpmayor.com/code/easy-fix-for-wordpress-3-5-jquery-is-not-defined-error/