update JavaScript and clean up

Also starts adding more overloads to ExtendedDecimal