Google representatives have announced about the upcoming ban on malware distributing files back in January , and the company sure sticks its promise. Currently, Gmail users can no longer send .js files even in their compressed or archived form. When trying to attach such files, a message “Blocked for security reasons” will immediately pop-up and block further actions. The automatic filter will also prevent the opening of older emails that contain such files by dropping the following message: “1 attachment contains a virus or blocked file. Downloading this attachment is disabled.” 
Of course, there are still ways to work around this ban, since .js files can be stored and shared via Google Drive or Google Cloud Storage. Despite that, it is a significant step towards a safer email environment which will undoubtedly help curb the malware distribution. Nevertheless, you should not relax and stay vigilant — malware developers are creative, and it is only a matter of time until they find new ways to infiltrate computers.