Translated newapp page to Jade and added in checking for locals.defaultEngine.