I small library using javascript History class