refactor js feed model