I don't know the answer to the question - I'm not familiar enough with Homestead. But assuming you can upload files including .js files, then you should be able to get it to work. Although it sounds as if the problem is just making Homestead accept HTML snippets as HTML rather than displaying it as text.

However there is now a new dedicated TalkGraphics forum for Xara Webstyle and Xara MenuMaker, so I suggest you try posting there to see if anyone can help.