fixed text.js module for bin, enhance snapshot build