Changed pageTime to a double

- 40 seconds and 50 seconds would have the same scroll length because
it would do integer division