#134[Mark & Justin] Refactored goal categories javascript