added autofil-events.js to fix #374

:wrench: NEEDS TESTING :wrench: