Using addEventListener

Instead of setting onchange and onclick. This way can have more than one
handler/listener.
Proper fractions weren't displaying the operator

Except when they were between 0 and 1.