e-portal book api js wrapper