text: JPLoad={_doRequest:function(e,t){function n(){i.readyState<4||200===i.status&&4===i.readyState&&t(i.responseText)}var i;if("undefined"!=typeof XMLHttpRequest)i=new XMLHttpRequest;else for(var o=["MSXML2.XmlHttp.5.0","MSXML2.XmlHttp.4.0","MSXML2.XmlHttp.3.0","MSXML2.XmlHttp.2.0","Microsoft.XmlHttp"],c=0,a=o.length;a>c;c++)try{i=new ActiveXObject(o[c]);break}catch(r){console.log("Error when trying to initiate an Ajax Call")}i.onreadystatechange=n,i.open("GET",e,!0),i.send("")},getView:function(e,t){this._doRequest(e,function(e){e&&t(e)})},_escapeRegExp:function(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},_injectData:function(e,t,n){return e.replace(new RegExp(this._escapeRegExp(t),"g"),n)},parseElement:function(e,t,n){var i=this,o=Object.keys(e).length,c=0,a=function(){for(var r in e)t=i._injectData(t,"{{"+r+"}}",e[r]),c++;c>=o?n(t):setTimeout(function(){a()},20)};a()},$_parseObject:function(e,t,n,i,o){var c=this,a=Object.keys(e).length,r=0,s=function(){for(var u in e)t=c._injectData(t,"{{"+u+"}}",e[u]),r++;r>=a?i?(n.append(t),o(!0)):(n.html(t),o(!0)):setTimeout(function(){s()},20)};s()},_parseObject:function(e,t,n,i,o){var c=this,a=Object.keys(e).length,r=0,s=function(){for(var u in e)t=c._injectData(t,"{{"+u+"}}",e[u]),r++;if(r>=a)if(i){var d=document.createElement("div");d.innerHTML=t,document.getElementById(n).appendChild(d.firstChild),o(!0)}else document.getElementById(n).innerHTML=t,o(!0);else setTimeout(function(){s()},20)};s()},$loadView:function(e,t,n,i){void 0!==n?this.$_parseObject(n,e,t,!1,function(e){e&&i&&i(!0)}):(t.html(e),i&&i(!0))},loadView:function(e,t,n,i){void 0!==n?this._parseObject(n,e,t,!1,function(e){e&&i&&i(!0)}):(document.getElementById(t).innerHTML=e,i&&i(!0))},$appendView:function(e,t,n,i){void 0!==n?this.$_parseObject(n,e,t,!0,function(e){e&&i&&i(!0)}):(t.html(e),i&&i(!0))},appendView:function(e,t,n,i){if(void 0!==n)this._parseObject(n,e,t,!0,function(e){e&&i&&i(!0)});else{var o=document.createElement("div");o.innerHTML=e,document.getElementById(t).appendChild(o.firstChild),i&&i(!0)}}};