write a DOMContentLoaded event in proprietaryEvent.js