adding jsrouting and clean code