Add events.js to /resources/ and update script reference in key* entries

Closes #208