Fixes issue #6

This fixes the scrolling problem.

Tested: Firefox and Chrome.

Signed-off-by: fdemian <demian.fc@gmail.com>