fix(core): parse URLs using the browser's DOM API
Updated the class example to include string, map and array syntax