BK-1065 Move javascript code related to book info page to a separated file