switch to ejs, add quality checks
jsbeautify fixes