     $(window).resize()
 
 class Viewport
-  constructor: ->
   @getWidth: ->
     size = window
             .getComputedStyle(document.body,':after')

        .removeAttr('width')

    $(window).resize ->
      newWidth = $(container).width()
      $videos.each ->
        $elm = $(this)
        $elm
          .width(newWidth)
          .height(newWidth * $elm.data('aspectRatio'))

class FluidVideos
  @init: (container=null, $videos=null) ->
    $videos ||= $("iframe[src*='vimeo.com'], iframe[src*='youtube.com']")

    $videos.each ->
