Simple JavaScript library for balancing accounts