Added budget decision, organized front-end JS