Intelligent routing module for JaggeryJS