Switched to prototype approach.
Added example.
Added .hasEventListener. Closes #4.