Fix the url for the API calls and changed to be more consistent between examples.
Merge pull request #61 from Hypnopompia/exampleFix

Fix the url for the API calls and changed to be more consistent between examples
Fixed API endpoint
Added javascript routing
Finished routing
Merge branch 'master' into gh-pages