refactored javascript into a partial. Updated data from feed