Fix: Now works if opened directly in a browser.