Added decodeEntities and charnames.js
Made isEmpty for codexlayout recognize nbsp
Optimize isEmpty definition
Made WSN use decodeEntities