a small javascript library