* If sum is really large it is fixed(2) so that difference in transaction_log is correct and it turns green, etc. * typeof amount.val() is check for undefined to avoid unneccesary error output.