add script for event.js