/* Author:

*/

// Modified http://paulirish.com/2009/markup-based-unobtrusive-comprehensive-dom-ready-execution/
// Only fires on body class (working off strictly WordPress body_class)

var ExampleSite = {
  // All pages
  common: {
    init: function() {
      // JS here
    },
    finalize: function() { }
  },
  // Home page
  home: {
    init: function() {
      // JS here
    }
  },
  // About page
  about: {
    init: function() {
      // JS here
    }
  }
};

var UTIL = {
  fire: function(func, funcname, args) {
    var namespace = ExampleSite;
    funcname = (funcname === undefined) ? 'init' : funcname;
    if (func !== '' && namespace[func] && typeof namespace[func][funcname] === 'function') {
      namespace[func][funcname](args);
    }
  },
  loadEvents: function() {

    UTIL.fire('common');

    $.each(document.body.className.replace(/-/g, '_').split(/\s+/),function(i,classnm) {
      UTIL.fire(classnm);
    });

    UTIL.fire('common', 'finalize');
  }
};

$(document).ready(UTIL.loadEvents);

@@ -14,193 +14,393 @@
 /%0A%0A/
-/ Modified http://paulirish.com/2009/markup-based-unobtrusive-comprehensive-dom-ready-execution/%0A// Only fires on body class (working off strictly WordPress body_class)%0A%0Avar ExampleSite
+* ========================================================================%0A * DOM-based Routing%0A * Based on http://goo.gl/EUTi53 by Paul Irish%0A *%0A * Only fires on body classes that match. If a body class contains a dash,%0A * replace the dash with an underscore when adding it to the object below.%0A * ======================================================================== */%0A%0Avar Egzpo
  = %7B
@@ -464,48 +464,46 @@
 // J
-S here%0A    %7D,%0A    finalize: function() %7B
+avaScript to be fired on all pages%0A   
  %7D%0A 
@@ -556,37 +556,69 @@
 n() %7B%0A      // J
-S her
+avaScript to be fired on the home pag
 e%0A    %7D%0A  %7D,%0A  /
@@ -678,13 +678,46 @@
 // J
-S her
+avaScript to be fired on the about pag
 e%0A  
@@ -807,18 +807,12 @@
  = E
-xampleSite
+gzpo
 ;%0A  
@@ -1040,17 +1040,16 @@
 ion() %7B%0A
-%0A
     UTIL
@@ -1192,46 +1192,8 @@
  %7D);
-%0A%0A    UTIL.fire('common', 'finalize');
 %0A  %7D

Add comments to _main.js, remove finalize