route refactoring. Man, do I love javascript.