Fix for JavaScript stacktrace

https://github.com/bugsnag/bugsnag-notification-plugins/issues/77