using absolute paths from facebook
rewriting routes as js, using newly built functionality