How to write a JS lib?
<p>I am looking for good practice or pattern to write a lib in JS. I would like to get <strong>good</strong> reference on how to write. Or pattern to follow.</p>

<p>I've just write a lib, but seems to be not good code. So, I am looking for doc in relation to.</p>
