Changes added to amount javascript