Update viewEngine.js