Create eventqueue.js