add filter by cost

javascript filtering of events by cost