Protyping JavaScript defined routes