Object #<HTMLDivElement> has no method 'addClass'

Solution: wrap html div element in a jquery element. See code to see how.