Thanks for the feedback.
Even putting the script in a code tag may not work as effectively avast will be looking at the raw data of that page. That is why I always use images to display suspect/exploit code, etc. However, placing it in a Code box has resolved this particular alert.
Yes isn't that always the case someone seeking help posting the sample code, than it is up to the experienced aumha staff/moderators to watch out for malicious code examples being posted, as (PA Bear) has done in this case.