Ouch! The following article, NewWindow (Method), mentions a feature exclusive to certain versions of the client. Specifically: HtmlService was removed after 2007.