Function causing view not to enter the view

HI i tried to incorporate a library history.js in my project and
m.getShortUrl = function(a) {
var b = a,
c = m.getBaseUrl(),
d = m.getRootUrl();
return m.emulated.pushState && (b = b.replace(c, “”)), b = b.replace(d, “/”), m.isTraditionalAnchor(b) && (b = “./” + b), b = b.replace(/^(./)+/g, “./”).replace(/#$/, “”), b
}
jquery function is not allowing the view to enter the sub view

Please help