Fixed little display issues.
Cleaned BookReader javascript.
Simplified custom functions.
Added a form to save data needed to display the viewer in order to avoid to calculate them each time.