Change this.AttachEvent to this._attachEvent Also change the for loops
as the for in, is not working on smartcloud as it is trying to iterate
over other objects that are not html elements.
Change File Action to Download Url
XPath fixes
Merge pull request #1016 from DaviRyan/_TemplateWidgetFix

 template widget fix