I am not following your question..
But if you want to display the multiplication of two field values, then use FormCalc.. Because if has more in built functions for calculations than JavaScript. So you can avoid writing too many lines of script.
Place the following in the Calculate event of the display Field. Set the language to FormCalc.
NumericField1.rawValue * NumericField2.rawValue;
Thanks
Srini