A simple client side javascript that converts a decimal to a fraction and a fraction to a decimal