A javascript library to provide some essential functions