Routing extension for scalable JavaScript application (based on History.js)