var ajaxify = {}; (function($) { var location = document.location || window.location, rootUrl = location.protocol + '//' + (location.hostname || location.host) + (location.port ? ':' + location.port : ''), content = null; var current_state = null; var executed = {}; var events = []; ajaxify.register_events = function(new_page_events) { for (var i = 0, ii = events.length; i