adding the js constructor for the budget obj