Create event_loop.js

event loop engine.