Javascript library for some common tasks