Fix js/expand.js

Fixed missing end tags and changed .text to .html since .text strips HTML