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.
You can update the Safari browser on a Mac computer by updating to the latest version of macOS. Here's how to do it.