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.
There are two basic ways to do fractions on your iPhone calculator. Here's what you need to know to use the built-in app.