Hi,
I get the error message “the requested URL /wp-admin/options-general.php was not found on this server”.
WordPress doesn’t reside under root, but hello.com/wordpress, so the URL is not valid.
+window.location.hostname+ seems to be the culprit.
Maybe use +window.location.hostname+window.location.pathname+ ?