scrollIntoView does not work in firefox

(same as before but on the develop branch)
solution is to launch the animation on both body and html elements
(solution found there http://stackoverflow.com/questions/8149155/animate-scrolltop-not-working-in-firefox)

After this fix, the callback was called twice, so I added a counter to limit to one call on the callback function.