A handy trick for syntax highlighting in IDEs is to use " to start strings and ' for strings within them, so `value="<% ... !== 'undefined' .."` here. I'd suggest using single quotes around undefined.