fix bug and code cleanup

Fixed a bug when a negative value uses brackets and currency sign on
page reload thanks to Allen Dumaine
Additional mods to the "set" method.
Eliminated lastSetValue setting