Function-orientated general purpose Javascript library