I think this topic has been touched multiple times.The samples you posted are numecod downloaders that come as a mail attachment in mail applications specifically not web mail.
Avast mail shield will block these downloaders as they arrive in the inbox so we are protected.You have to test the whole infection chain to know exactly if avast stops it or not.
In case of avast until the file is executed you can’t say if its detected or not since there are lot of layers and shields,malware has to get past all of them to infect you. 
The gripe that I have had for a long time is that even after blocking the downloads the js is trying to access,avast is unable to see the underlying downloader that has to removed,this should actually be intended behaviour performed by IDP since it can monitor this kind of stuff.Even,if IDP doesn’t do it atleast we could deepscreen the file. :-[