Fix ejs/jst handling with html 5