This is broken completely. Presumably it hasn't been updated for SharePoint 2013.
In sharepoint.js:
if (js['S:Body']['S:Fault']) {
isn't valid, there is an additional level of data, it should be:
if (js['S:Envelope']['S:Body']['S:Fault']) {
but that doesn't work either since it just fails later.