Adding back events. Fixing so they dont act wierd, daisy chaining document.on calls