Closes #842 Check that jQuery.fn.drupalSetSummary is defined

JS runs on all pages, including front end pages where that method is not available

#842