Got layout.js to pass JSLint