 
                 getPosition = (height) ->
                     if height > 200
-                        position = that.position().top - (that.height() / 2)
+                        that.position().top - (that.height() / 2)
                     else    
-                        position = that.position().top - that.height()
-                    position
+                        that.position().top - that.height()
 
                 # the first element's position should always be 0
                 if index is 0

                window.location.hash = target
                return

            return false

        scrollSpy: =>
            scroll = $('body').scrollTop()


                # correct for any elements that may have a negative position value  
                if position < 0 then positions.push 0 else positions.push position

            positions

