Add test/example use of the web service from within the home page

...#1
Please check if this works correctly for you.
I changed two lines in the index.js too. The first one to get the http method from the request.
And the second to make an array from the arguments. It works on windows for me, but please check.