Update event.js

added support for files on subsites.