JavaScript Selector and Prototype extender