added path.js for client side url routing
minor fixes