I just created another applet to show the scalar product between two vector A, B.

You can drag those vectors to change location and length (orientation).

VIEW or DOWNLOAD ejs xml source
then click to translate strings for selected locale.

Press the Alt key and the left mouse button to drag the applet off the browser and onto the desktop.