A few tweaks.
Changed the javascript to use parseFloat for localization.