Fixed bug in messaging.js

Fixed bug with Internet Explorer versions 9 and earlier where IE does not recognize the isArray function.