Changed string check using instanceof to check using Object.prototype.toString instead (mostly for browsers less than ie9).
Pulled latest