narrow.js performance and style improvements