A library using javascript objects