You can enable JavaScript in your iPhone's Settings app to improve website appearance in your Safari browser.
You can enable Javascript on a Mac by going into your browser's Preferences menu. In Safari, you'll find the Javascript option in the Security tab.