Conditional ejs to core.js