converting strings to numbers with document.write example