refactored Goals page js, began Jasmine testing