In your last link, try to provide more space to "c2canvasdiv".
A width of 660 and removing the <br/> in between the two closing </div> should help.
Modifying only the width value in FF worked for me, the square was already well positioned under the mouse, it was only an aesthetic matter of correctly "framing" the div.
You already did most the work, you might still want to check this tutorial to learn more about editing the index.html file.