Structure for a JavaScript library