adding js and event docs