An application programming interface (API) is software that acts as an intermediary between two programs, helping them exchange information.
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.