 import PreloadContainer from 'src/classes/preload_container'
 import { removeImageElement } from 'src/utils/image'
 import Navigator from './navigator'
+
+$ = jQuery
 
 ###
 # We have a few competing goals:

    # Create the low-level voting widget.
    popup_vote_widget_container = @container.down('.vote-popup-container')
    popup_vote_widget_container.show()
    @popup_vote_widget = new Vote(jQuery(popup_vote_widget_container), null)
    @popup_vote_widget.initShortcut()
    flash = @container.down('.vote-popup-flash')


    # the image will actually be sent to the containing box directly.
    ###
    @img.setStyle pointerEvents: 'none'
    $(@img).on 'load', @image_loaded_event
    @img.fully_loaded = false
    if post_frame != -1 && post_frame < post.frames.length
      frame = post.frames[post_frame]
