Demo updates

Lots of comments added to the demo page.
Updated the parseUrlString() function to be more flexible with more URL
configurations, also, chopped off any hash if it exists.