use html-mode as master mode for ejs files.