Javscript utility library