         <input size="16" type="text" class="n-loops">
       </div>
     </form>
-    ''')
+    '''
 
   render: =>
     super
     @$el.empty()
 
-    @$el.append(@timeRangeTemplate())
+    @$el.append @timeRangeTemplate()
     @setupTimeControls()
     @setupLoopsButton()
 
     # if meta data is waiting, fetch it and refresh time controls on retrieval
-    @model.metaData()?.sync(success: => @setupTimeControls())
+    @model.metaData()?.sync success: => @setupTimeControls()
 
     @
 


class VideoLinkShell.MediaView extends LinkShell.MediaView

  className: @classNameExtend('video-link-shell')

  initialize: =>
    super

    bound = (val) -> Math.max(0, Math.min((val ? 0), max))

    floatOrDefault = (num, def) ->
      if _.isNumber(num) and not _.isNaN(num) then parseFloat num else def

    start = floatOrDefault data.start, 0
    end = floatOrDefault data.end, max

    start = bound start
    end = bound end

    # prohibit negative length
    invalidTimes = end < start
