I'm not a fan of creating a lib like that.
I would look into more OO programming and then how to chain functions.
Your basic javascript OO programming would have one global variable such as:
var myLib = {
myfunction = function(){
},
myfunction2 = function(){
}
}
This way you can call it like so myLib.myfunction2();
this way it keeps your functions to your own lib etc.
I absolutely adore javascript OO programming at the moment I've thrown myself into it head 1st

.
Just PM me if you want any JS related help

.