Changes html text input to display decimals as fractions