A javascript library to implement some new functions