The old "Fast Decimals to Fractions" site seems to be down, but I used it a lot, so I've copied its source from the Wayback Machine. I've made a few minor improvements, such as making it valid HTML5.
The original source code states that at least the script portion is free:
No license. Free to copy, and provided inline to make it easy to copy.