Added a custom filter to the event listener for rscripts