Fixed sidebar not closing article tag.
Eliminated nested function
Merge pull request #2 from embolden/master

Fixed sidebar not closing article tag.