using enterDocument to add event listeners
Merge pull request #81 from cesine/eventListeners

using enterDocument to add event listeners