Edit Books using Javascript