Switched to client side calculations with the result rendered from a mustache template.