Update routie.js

[FIX]:
 - index type fix for routie.buildRoute()