Fix js/expand.js

Fixed missing end tags in js/expand.js and changed .text() to .html() since .text() strips HTML.