Improving the code to use proper URL parsing instead of regex-matching. Fixes bug https://github.com/aawc/AlwaysSmileAmazon/issues/1