jQuery 1.9 compatibility

Fix attached. More info at http://blog.jquery.com/2013/01/15/jquery-1-9-final-jquery-2-0-beta-migrate-final-released/