 RootView = require 'views/core/RootView'
 template = require 'templates/home-view'
 CocoCollection = require 'collections/CocoCollection'
-TrialRequest = require 'models/TrialRequest'
-TrialRequests = require 'collections/TrialRequests'
-Courses = require 'collections/Courses'
+
 utils = require 'core/utils'
 storage = require 'core/storage'
 {logoutUser, me} = require('core/auth')

    'click a': 'onClickAnchor'
    'click #jumbotron-down-arrow': 'onClickJumbotronDownArrow'

  initialize: (options) ->
    super(options)

    @courses = new Courses()
    @supermodel.trackRequest @courses.fetchReleased()

    if me.isTeacher()
      @trialRequests = new TrialRequests()
      @trialRequests.fetchOwn()
      @supermodel.loadCollection(@trialRequests)

  getMeta: ->
    title: $.i18n.t 'new_home.title'
    meta: [

  logoutAccount: ->
    Backbone.Mediator.publish("auth:logging-out", {})
    logoutUser()
