The order is important to Route, this corrects it.
Merge pull request #747 from terwey/jsRouteFix

The order is important to Route, this corrects it.