created js file for registering  new books