JavaScript library with a lot of functions of different types