Fixed WP4.0 jQuery error.

Hi, this fixes an error I had after upgrading WP. Could you get this merged in please?