Fix sum() to work on firefox using jquery.html() instead of innterText