         unless @isRunning() or _elmnts.canvas.onclick?
             #only do all of this once
             if _firstTime
-                #add engine to a user defined '#GREENHORN' div or the document body
+                #add engine to a user defined '.gh' div or the document body
                 (document.querySelector('.gh') ? document.body).appendChild _elmnts.main
+                if _elmnts.main.parent is document.body
+                    document.body.class = 'gh'
 
                 #set the size of the canvas
                 @set 'canvas', 'width', env.ENGINE.canvasWidth

    e.preventDefault()
    Greenhorn.isDown[e.keyCode] = false
    return
document.onmousemove = (e) ->
    @mouseX = e.pageX
    @mouseY = e.pageY
    return

#integer ID used to start and stop _masterUpdate
_masterID = null

    #append headers to panels
    _elmnts.leftPanel.appendChild _elmnts.leftPanelHeader
    _elmnts.rightPanel.appendChild _elmnts.rightPanelHeader
    
    #keep track of mouse position over canvas
    _emnts.canvas.onmousemove = (e) ->
        @mouseX = e.pageX
        @mouseY = e.pageY
        return

    #mouse position getters
    @getMouseX = -> _elmnts.canvas.mouseX - @get('main', 'offsetLeft') - @get('canvas', 'offsetLeft') - @get('canvas', 'width') / 2
    @getMouseY = -> _elmnts.canvas.mouseY - @get('main', 'offsetTop') - @get('canvas', 'offsetTop') - @get('canvas', 'height') / 2

    #generic element getter/setter
    @get = (elmnt, attr) ->
