refs #152, JavaScript for friendly_percent and fees