adding chaining for id, class, and event listeners closes #393