Resolved issue preventing data from displaying

Code was initially returning the error Cross-Origin Request Blocked. Replaced reference to localhost in index.html file with 127.0.0.1, as unix browsers were not recognizing localhost as being the same thing as the computer's IP address. Data now displays correctly.
Updated solution to support alternate URLs

Replaced hard-coded 127.0.0.1 with location.origin, so that it would be possible to use either localhost or 127.0.0.1 to access the app.
Cleaned up definition of samplesURI

Now only a single line, removed unnecessary variables
Merge branch 'bug4241_Display_Data'
Merging in solution to the bug of data not displaying on certain browsers (bug 4241)